package com.ytkj.digitalConstruction.httpbean.dept.req;

import java.util.Arrays;

import com.ytkj.digitalConstruction.entity.dept.Dept;

/**
 * 
 * @author iking
 *
 */
public class ReqDept extends Dept {

	/**
	 * 父级节点id集合
	 */
	private int[] parentIds;

	public void setParentIds(int[] parentIds) {
		this.parentIds = parentIds;
	}

	/**
	 * 构建DTO实体
	 * 
	 * @return
	 */
	public Dept dept() {
		Dept dept = new Dept();
		dept.setDeptId(getDeptId());
		dept.setDeptName(this.getDeptName());
		dept.setDeptOrder(this.getDeptOrder());
		dept.setDeptType(this.getDeptType());
		dept.setParentId(this.getParentId());
		dept.setDeptDesc(this.getDeptDesc());
		return dept;
	}
	
	@Override
	public String toString() {
		return "ReqDept [parentIds=" + Arrays.toString(parentIds) + "]";
	}

}
